//
//  PaOrderViewController.m
//  ced
//
//  Created by 尤振宇 on 15/11/4.
//  Copyright © 2015年 尤振宇. All rights reserved.
//

#import "FatherViewController.h"

@interface FatherViewController ()
@end

@implementation FatherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = kF2F2F2;
    
  
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    if ([viewController isKindOfClass:[FatherTableViewController class]]) {
        FatherTableViewController *vc = (FatherTableViewController *)viewController;
        vc.updataViewController = self;
    }
    if ([viewController isKindOfClass:[FatherViewController class]]) {
        FatherViewController *vc = (FatherViewController *)viewController;
        vc.updataViewController = self;
    }
    viewController.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:viewController animated:animated];
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    if (self.isViewWillAppearUpdata) {
        [self loadData];
        self.isViewWillAppearUpdata = NO;
    }
}

-(void)loadData
{
    NSLog(@"子类重写");
}

-(void)dealloc
{
    NSLog(@"%@ 释放了!!!",[self class]);
}
@end
